﻿@using ProjectManagement.Models
@model string
           
<a href="javascript:;" onclick="getmembers('@Model')">获取成员</a>

@(Html.Telerik().Window()
    .Name("GetMembers")
    .Content(@<text>
<div class="dialogue-GetMembers">
    <div class="GetMembers-wrapper">
    </div>
</div></text>)
    .Width(600)
    .Height(250).Title("获取成员")
    .Modal(true).Visible(false).Draggable(true)
)

<script>
    function getmembers(id) {
        if ($(id).val() == "") {
            alert("请先选择一个项目");
            return;
        }
        $.post('/Member/getmembers', { projectId: $(id).val() }, function (result) {
            $('.GetMembers-wrapper').html(result);
            var window = $('#GetMembers').data('tWindow');
            window.center().open();
        });
    }
</script>